package wwl.lsf;

import java.util.Set;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration.Dynamic;
import org.springframework.web.SpringServletContainerInitializer;

public class MyServletContainerInitializer extends SpringServletContainerInitializer {

  @Override
  public void onStartup(Set<Class<?>> webAppInitializerClasses, ServletContext servletContext)
      throws ServletException {
    Dynamic wwlDis = servletContext.addServlet("xx",new MySpringServlet());
    wwlDis.addMapping("/");
    wwlDis.setLoadOnStartup(1);
  }

}
